package com.settlement.system.service;

import com.settlement.system.common.exception.ServiceException;
import com.settlement.system.model.entity.common.CustomizedExporeParams;
import com.settlement.system.model.entity.common.TblCustomizedExporeDtl;

import java.util.List;

/**
 * 自定义导出主表 服务类
 *
 * @author Ximi
 * @since 2020-11-17
 */

public interface ITblCustomizedExporeMainService extends IBaseService {

    /**
     * 保持自定义导出
     *
     * @param params
     * @throws ServiceException
     */
    public void saveCustomizedExpore(CustomizedExporeParams params) throws ServiceException;

    /**
     * 更新自定义导出
     *
     * @param params
     * @throws ServiceException
     */
    public void updateCustomizedExpore(CustomizedExporeParams params) throws ServiceException;

    /**
     * 删除自定义导出
     *
     * @param params
     * @throws ServiceException
     */
    public void deleteCustomizedExpore(CustomizedExporeParams params) throws ServiceException;


    /**
     * 通过菜单名称和自定义导出名称获取明细数据
     *
     * @param menuName             菜单名称
     * @param customizedExporeName 自定义导出
     * @return
     * @throws ServiceException
     */
    public List<TblCustomizedExporeDtl> getByBothName(String menuName, String customizedExporeName) throws ServiceException;

    /**
     * 获取自定义导出的名称
     *
     * @param menuName
     * @return
     * @throws ServiceException
     */
    public List<String> getCustomizedExporeNameByMenuName(String menuName) throws ServiceException;

}

